﻿<Window x:Class="EmlViewer.Viewers.HtmlViewer"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="{Binding Subject}" 
        Height="500" Width="900"
        WindowStartupLocation="CenterScreen"
        Icon="j0433792.png"
        >
    <Grid>
        <DockPanel>
            <Border DockPanel.Dock="Top" Background="Navy"> 
            <StackPanel  Margin="10">
                    <StackPanel.Resources>
                        <Style TargetType="TextBlock">
                            <Setter Property="Foreground" Value="Wheat"/>
                            <Setter Property="FontWeight" Value="Bold"/>
                            <Setter Property="HorizontalAlignment" Value="Left"/>
                            <Setter Property="VerticalAlignment" Value="Center"/>
                        </Style>
                    </StackPanel.Resources>
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="From" Width="90"/>
                    <Rectangle Width="20"/>
                    <TextBlock Text="{Binding From}"/>
                </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="To" Width="90"/>
                        <Rectangle Width="20"/>
                        <TextBlock Text="{Binding To}"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Sent" Width="90"/>
                        <Rectangle Width="20"/>
                        <TextBlock Text="{Binding Sent}"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Subject" Width="90"/>
                        <Rectangle Width="20"/>
                        <TextBlock Text="{Binding Subject}"/>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="Attachments" Width="90"/>
                        <Rectangle Width="20"/>
                        <TextBlock Text="{Binding AttachmentList}"/>
                    </StackPanel>
            </StackPanel>
            </Border>
            <WebBrowser DockPanel.Dock="Top" Name="Browser1"/>
        </DockPanel>
    </Grid>
</Window>
